package {{.TableDetailResp.PackageName}}

import "MoSkeleton/framework/core/dto/request"

type {{.TableDetailResp.StructName}}PageReq struct {
    request.PageInfo
    request.BaseRequest
    request.IDRequestOptional
{{range .TableDetailResp.Columns}}{{if and (ne "created_at" .ColumnName) (ne "updated_at" .ColumnName)  (ne "created_by" .ColumnName)}}
{{if GenPageReqColumnNameFilter .GoFieldName }}{{.GoFieldName}} {{.GoType}} `json:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}" form:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}"`{{ end }}
{{end}}{{end}}
}

type {{.TableDetailResp.StructName}}AddReq struct {
{{range .TableDetailResp.Columns}} {{if and (ne "created_at" .ColumnName)  (ne "updated_at"  .ColumnName)}}
    {{.GoFieldName}} {{.GoType}} `json:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}" form:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}"`
    {{end}}
{{end}}
}

type {{.TableDetailResp.StructName}}UpdateReq struct {
    request.IDRequest
{{range .TableDetailResp.Columns}} {{if and (ne "created_at" .ColumnName) (ne "updated_at" .ColumnName)  (ne "created_by" .ColumnName)}}
{{if GenUpdateReqColumnNameFilter .GoFieldName }}
    {{.GoFieldName}} {{.GoType}} `json:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}" form:"{{.JsonFieldName}}{{JsonStringTagForColumn .GoType}}"`
{{ end }}  {{end}}
{{end}}
}
